import java.util.Scanner;

public class Main1094 {
    public static  void main (String [] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        char a = 'A';
        for (int i = 1; i <= n; i++) {
            for (int k = n; k - i > 0; k--) {
                System.out.print(" ");
            }
            for (int j = 0; j < 2 * i - 1; j++) {
                System.out.print(a);
            }
            System.out.println();
            a++;
        }

    }
}